package com.blacktea.cloudproviderpayment.controller;

import com.blacktea.cloudapicommon.beans.CommonResult;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: black tea
 * @date: 2021/8/12 14:49
 */
@RequestMapping("sleuth")
@RestController
public class SleuthController {

    @Value("${server.port}")
    private String serverPost;

    @GetMapping("/zipkin")
    public CommonResult<String> getZipkin(){
        return new CommonResult<>(200,"port:"+serverPost+"!","hi, zipkin xxx");
    }
}
